<?php


/**
* Puree CMS
* http://www.molotsoft.ru
*
* @package Puree_CMS
* @subpackage Admin/Views
* @author Ivan Chistyakov <ivan@molotsoft.ru>
* @version $Id: admin_welcome.ctp 895 2010-03-16 12:43:48Z molotsoft@gmail.com $
* @link $HeadURL: http://puree-cms.googlecode.com/svn/trunk/plugins/admin/views/users/admin_welcome.ctp $
*/


// info_container
echo '<div class="info info_container">';

// info_caption
echo '<div class="info_caption">' . $caption_for_layout . '</div>';

// info_content
echo '<div class="info_content">';
echo '<table>';
// apache
if (function_exists('apache_get_version')) {
	echo '<tr><td class="name">Apache</td><td class="content">' . apache_get_version() . '</td></tr>';
}
// mysql
if (function_exists('mysql_get_client_info')) {
	echo '<tr><td class="name">MySQL&nbsp;Client</td><td class="content">' . mysql_get_client_info() . '</td></tr>';
}
if (function_exists('mysql_get_host_info')) {
	echo '<tr><td class="name">MySQL&nbsp;Host</td><td class="content">' . mysql_get_host_info() . '</td></tr>';
}
if (function_exists('mysql_get_proto_info')) {
	echo '<tr><td class="name">MySQL&nbsp;Protocol</td><td class="content">' . mysql_get_proto_info() . '</td></tr>';
}
if (function_exists('mysql_get_server_info')) {
	echo '<tr><td class="name">MySQL&nbsp;Server</td><td class="content">' . mysql_get_server_info() . '</td></tr>';
}
// php
echo '<tr><td class="name">PHP</td><td class="content">' . phpversion() . ' ' . $html->link('phpinfo()', array('controller' => 'misc', 'action' => 'phpinfo', 'admin' => FALSE), array('target' => '_phpinfo')) . '</td></tr>';
echo '<tr><td class="name">CakePHP</td><td class="content">' . Configure::read('Cake.version') . '</td></tr>';
echo '<tr><td class="name">' . Configure::read('Engine.name') . '</td><td class="content">' . Configure::read('Engine.version') . '</td></tr>';
// disk
echo '<tr><td class="name">' . __('root_directory', TRUE) . '</td><td class="content">' . ROOT . '</td></tr>';
echo '<tr><td class="name">' . __('disk_total_space', TRUE) . '</td><td class="content">' . disk_total_space(ROOT) . '</td></tr>';
echo '<tr><td class="name">' . __('disk_free_space', TRUE) . '</td><td class="content">' . disk_free_space(ROOT) . '</td></tr>';
echo '</table>';
echo '</div>'; // end of info_content

echo '</div>'; // end of info_container


?>